package com.ruoyi.project.gzbook.dimensionrank.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 维度排行榜对象 dg_dimension_rank
 * 
 * @author mhg
 * @date 2021-10-06
 */
public class DgDimensionRank extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 图书id */
    @Excel(name = "图书id")
    private Long bookId;

    /** 销量 */
    @Excel(name = "销量")
    private Long saleNum;

    /** 评论量 */
    @Excel(name = "评论量")
    private Long commentNum;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Long browseNum;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setBookId(Long bookId)
    {
        this.bookId = bookId;
    }

    public Long getBookId()
    {
        return bookId;
    }
    public void setSaleNum(Long saleNum)
    {
        this.saleNum = saleNum;
    }

    public Long getSaleNum()
    {
        return saleNum;
    }
    public void setCommentNum(Long commentNum)
    {
        this.commentNum = commentNum;
    }

    public Long getCommentNum()
    {
        return commentNum;
    }
    public void setBrowseNum(Long browseNum)
    {
        this.browseNum = browseNum;
    }

    public Long getBrowseNum()
    {
        return browseNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bookId", getBookId())
            .append("saleNum", getSaleNum())
            .append("commentNum", getCommentNum())
            .append("browseNum", getBrowseNum())
            .append("createTime", getCreateTime())
            .toString();
    }
}
